package com.pkx.cloud.fse7.expand.group.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.pkx.cloud.mybatis.comn.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Set;

/**
 * @author chenwg
 * @since 2021-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("door_group")
@ApiModel(value = "DoorGroup对象", description = "")
public class DoorGroup extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "分组名称")
    private String groupName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "别名")
    private String alias;
    @ApiModelProperty(value = "父节点id")
    private String parentId;

    @ApiModelProperty(value = "节点完整路径")
    private String path;
    @ApiModelProperty(value = "节点层级")
    private Integer level;

    @ApiModelProperty(value = "权重")
    private String weight;


    @TableField(exist = false)
    @ApiModelProperty(value = "设备数量")
    private Integer deviceNum;

    @TableField(exist = false)
    private List<DoorGroupDetail> detailList;

    @ApiModelProperty(value = "门禁列表")
    @TableField(exist = false)
    private List<String> details;
    @ApiModelProperty(value = "创建用户名称")
    private String createUserName;
}
